import java.lang.reflect.Field;
import java.lang.reflect.Modifier;

class Father{
    protected static int i;
}
public class TestJavaExtends extends Father {
    public static void main(String[] args) throws NoSuchFieldException {
        Class<TestJavaExtends> clazz = TestJavaExtends.class;
//        Field i = clazz.getDeclaredField("i");
//        System.out.println(Modifier.isProtected(i.getModifiers()));
        Field[] fields = clazz.getFields();
        for (Field field : fields) {
            System.out.println(field);
        }

        System.out.println(i);
    }
}

class C extends TestJavaExtends{
    private void test(){
        System.out.println(i);
    }
}
